package Demo01;

public class newTest {
    public static void main(String[] args) {
        MyLinkedList list = new MyLinkedList();
        list.addLast(1);
        list.addLast(2);
        list.addLast(3);
        list.addLast(1);
        list.addLast(2);
        list.addLast(2);
        list.addLast(1);
        list.addLast(1);
        list.display();
        list.removeAllKey(1);
        list.display();
        list.clear();
        list.display();
/*        list.addFirst(1);
        list.addFirst(2);
        list.addFirst(3);
        list.addFirst(4);*/

/*        list.addLast(11);
        list.addLast(22);
        list.addLast(33);
        list.addLast(44);
        list.addIndex(0,1);
        list.addIndex(2,2);
        list.display();
        list.remove(11);
        list.remove(1);
        list.remove(44);
        list.display();
        System.out.println(list.last.val);
        System.out.println(list.head.val);*/
    }
}
